/**
 * mosca websocket
 * zhaixiang 20240422
 */
import http from "http"
import mosca from "mosca"
// const http = require('http')
// const mosca = require('mosca')

const mqttServ = new mosca.Server()
const httpServ = http.createServer()
mqttServ.attachHttpServer(httpServ)
httpServ.listen(8080)